﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NexTrackDesktop.Media
{
    public class QueueItem
    {
        public Song Song { get; set; }
        public int UpVotes { get; set; }
        public int DownVotes { get; set; }

        /// <summary>
        /// This method gets the net vote count.
        /// </summary>
        public int NetVotes
        {
            get { return UpVotes - DownVotes; }
        }

        /// <summary>
        /// This method creates a QueueItem with the specified song & no votes.
        /// </summary>
        /// <param name="song"></param>
        public QueueItem(Song song)
        {
            this.Song = song;
            UpVotes = DownVotes = 0;
        }
    }
}
